﻿using System;
using System.Data;
using ASPNETVN.PORTAL.Components.UI;

namespace ASPNETVN.PORTAL.Modules.ADVERTISEMENT.Controls
{
    public partial class HorizontalStatic : ModulePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack == false)
            {
                gvItem.RepeatColumns = int.Parse(this.Settings["Columns.Count"].ToString());
                this.GridDataBinding();
            }
        }

        private void GridDataBinding()
        {
            DataSet ds = Components.Item.SelectAll(this.ModuleID);
            gvItem.DataSource = ds;
            gvItem.DataBind();
        }
    }
}